﻿<html>
<head><title>下拉选择</title>
<script src="angular.min.js"></script>

</head>
<body>
    <div ng-app="myApp" ng-controller="mc">
        <select ng-init="selectedName = names[0]" ng-model="selectedName" ng-options="x for x in names">
        </select>    
        <span ng-bind="selectedName"></span>     
    </div>


<script>
   var app = angular.module("myApp",[]);
   app.controller("mc",function($scope){
      $scope.names=["asd","dsfdsf","ewrewr","ewtrfetr"];
   });
</script>


</body>

</html>